/*
 * @Author: deliteam 462085920@qq.com
 * @Date: 2023-11-07 16:02:23
 * @Description:
 */
module.exports = {
  apps: [
    {
      name: 'nest_serve',
      script: 'dist/src/main.js', // 指定Nest.js主文件的路径
      instances: 'max',
      exec_mode: 'cluster',
      autorestart: true,
      watch: true,
      max_memory_restart: '1G',
      wait_ready: true, // 等待应用程序准备好后再标记为"online"
      env: {
        FM_SERVER_ENV: 'prod',
      },
    },
  ],
};
